import request from '@/utils/request'

// 查询清洁记录列表
export function listClCleanRecord(query) {
  return request({
    url: '/park/clCleanRecord/list',
    method: 'get',
    params: query
  })
}

// 查询清洁记录详细
export function getClCleanRecord(id) {
  return request({
    url: '/park/clCleanRecord/' + id,
    method: 'get'
  })
}

// 新增清洁记录
export function addClCleanRecord(data) {
  return request({
    url: '/park/clCleanRecord',
    method: 'post',
    data: data
  })
}

// 修改清洁记录
export function updateClCleanRecord(data) {
  return request({
    url: '/park/clCleanRecord',
    method: 'put',
    data: data
  })
}

// 删除清洁记录
export function delClCleanRecord(id) {
  return request({
    url: '/park/clCleanRecord/' + id,
    method: 'delete'
  })
}
